let vm=new Vue({
    el:"#app",
    data:{
        userName:"",
        password:"",
        list:[
            {user:"123",password:"123"},
        ]
    },
    methods:{
        add(){
            var obj={user:this.userName,password:this.password};
            this.list.push(obj);
            this.userName="";
            this.password="";
            console.log(this.list)
        }
    }
})